home *** CD-ROM | disk | FTP | other *** search
/ Champak 130 / Vol 130.iso / games / hummer.swf / scripts / DefineSprite_317 / frame_11 / DoAction.as
Encoding:
Text File  |  2007-01-08  |  3.7 KB  |  142 lines

  1. var ┬º\x01┬º = 632;
  2. while(true)
  3. {
  4.    if(eval("\x01") == 632)
  5.    {
  6.       set("\x01",eval("\x01") - 49);
  7.       ┬º┬ºpush(true);
  8.    }
  9.    else if(eval("\x01") == 135)
  10.    {
  11.       set("\x01",eval("\x01") + 414);
  12.       if(┬º┬ºpop())
  13.       {
  14.          set("\x01",eval("\x01") + 20);
  15.       }
  16.    }
  17.    else if(eval("\x01") == 876)
  18.    {
  19.       set("\x01",eval("\x01") - 185);
  20.       if(┬º┬ºpop())
  21.       {
  22.          set("\x01",eval("\x01") + 159);
  23.       }
  24.    }
  25.    else if(eval("\x01") == 569)
  26.    {
  27.       set("\x01",eval("\x01") + 82);
  28.       ┬º┬ºpush(true);
  29.    }
  30.    else if(eval("\x01") == 850)
  31.    {
  32.       set("\x01",eval("\x01") - 715);
  33.       ┬º┬ºpush(true);
  34.    }
  35.    else if(eval("\x01") == 134)
  36.    {
  37.       set("\x01",eval("\x01") + 361);
  38.       if(┬º┬ºpop())
  39.       {
  40.          set("\x01",eval("\x01") - 9);
  41.       }
  42.    }
  43.    else
  44.    {
  45.       if(eval("\x01") == 691)
  46.       {
  47.          set("\x01",eval("\x01") + 159);
  48.          stopDrag();
  49.          break;
  50.       }
  51.       if(eval("\x01") == 549)
  52.       {
  53.          set("\x01",eval("\x01") + 20);
  54.          break;
  55.       }
  56.       if(eval("\x01") == 289)
  57.       {
  58.          set("\x01",eval("\x01") + 299);
  59.          break;
  60.       }
  61.       if(eval("\x01") == 583)
  62.       {
  63.          set("\x01",eval("\x01") - 294);
  64.          if(┬º┬ºpop())
  65.          {
  66.             set("\x01",eval("\x01") + 299);
  67.          }
  68.       }
  69.       else if(eval("\x01") == 588)
  70.       {
  71.          set("\x01",eval("\x01") - 454);
  72.          ┬º┬ºpush(true);
  73.       }
  74.       else if(eval("\x01") == 651)
  75.       {
  76.          set("\x01",eval("\x01") - 320);
  77.          if(┬º┬ºpop())
  78.          {
  79.             set("\x01",eval("\x01") - 50);
  80.          }
  81.       }
  82.       else if(eval("\x01") == 486)
  83.       {
  84.          set("\x01",eval("\x01") + 390);
  85.          ┬º┬ºpush(true);
  86.       }
  87.       else
  88.       {
  89.          if(eval("\x01") != 331)
  90.          {
  91.             if(eval("\x01") == 495)
  92.             {
  93.                set("\x01",eval("\x01") - 9);
  94.                break;
  95.             }
  96.             if(eval("\x01") == 281)
  97.             {
  98.                set("\x01",eval("\x01") + 584);
  99.                stop();
  100.                nextBtn.btn.onRollOver = function()
  101.                {
  102.                   _root.soundArc2.playSound("mouseOver2",0);
  103.                };
  104.                nextBtn.btn.onPress = function()
  105.                {
  106.                   _root.soundArc2.playSound("mouseClick",0);
  107.                   play();
  108.                };
  109.                nextBtn.btn2.onRollOver = function()
  110.                {
  111.                   _root.soundArc2.playSound("mouseOver2",0);
  112.                };
  113.                nextBtn.btn2.onPress = function()
  114.                {
  115.                   _root.soundArc2.playSound("mouseClick",0);
  116.                   getUrl("http://www.gamezhero.com/?utm_campaign=hrc&utm_source=hrc&utm_medium=more_free_games2", "_blank");
  117.                };
  118.                if(_root.gameInfo.currentGame.type == 0)
  119.                {
  120.                   scoreText.text = _root.gameInfo.currentGame.score[_root.gameInfo.currentGame.level];
  121.                   var s = 0;
  122.                   for(var i in _root.gameInfo.currentGame.score)
  123.                   {
  124.                      if(_root.gameInfo.currentGame.score[i] != undefined)
  125.                      {
  126.                         s += _root.gameInfo.currentGame.score[i];
  127.                      }
  128.                   }
  129.                   scoreText2.text = "total: " + s;
  130.                }
  131.                if(_root.gameInfo.currentGame.type == 1)
  132.                {
  133.                   scoreText.text = _root.gameInfo.currentGame.score[_root.gameInfo.currentGame.level];
  134.                }
  135.             }
  136.             break;
  137.          }
  138.          set("\x01",eval("\x01") + 301);
  139.       }
  140.    }
  141. }
  142.